@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  color: #333;
  font-size: 13px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 12px 20px;
}

.df, .dfa, .dfj, .dft, .row, .nav-tool, .nt-main, .nt-aside, .btn-tools, .jce, .dfc {
  display: -webkit-flex;
  display: flex;
}

.f1 {
  flex: 1;
}

.dfc, .btn-tools {
  justify-content: center;
  align-items: center;
}

.dfa, .row {
  align-items: center;
}

.dfj {
  justify-content: center;
}

.dft {
  justify-content: flex-start;
}

.jce {
  align-items: center;
  justify-content: flex-end;
}

.jcs {
  justify-content: space-around;
}

.row-aside {

}

.row-main {
  flex: 1
}

.card {
  padding: 20px;

}

.card-title {
  border-bottom: 1px solid #eee;
}

.ct-main {
  flex: 1
}

.ct-aside {

}

/* 超长点点点 一行 */
.long {
  width: inherit;
  display: block;
  white-space: nowrap;
  -ms-text-overflow: ellipsis;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* 超长点点点 两行 */
.long2 {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  white-space: normal !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.inb {
  display: inline-block;
}

.fix {
  position: fixed;
}

.wh100 {
  width: 100%;
  height: 100%;
}


/* 底部按钮统一样式 */
.form-control {
  display: block;
  width: 100%;
  height: 68 rpx;
  padding: 12 rpx 24 rpx;
  font-size: 28 rpx;
  line-height: 68 rpx;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 2 rpx solid #ccc;
  border-radius: 8 rpx;
  -webkit-box-shadow: inset 0 2 rpx 2 rpx rgb(0 0 0 / 8%);
  box-shadow: inset 0 2 rpx 2 rpx rgb(0 0 0 / 8%);
  -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
}

.form-control:focus {
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 2 rpx 2 rpx rgb(0 0 0 / 8%), 0 0 16 rpx rgb(102 175 233 / 60%);
  box-shadow: inset 0 2 rpx 2 rpx rgb(0 0 0 / 8%), 0 0 16 rpx rgb(102 175 233 / 60%);
}

.el-dialog {
  min-width: 500px;
  max-width: 800px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: 0 !important;
  transform: translate(-50%, -50%);
}

.w100 {
  width: 100%;
}

.nest-active {
  color: #40B6FF;
}

.nest-container > .nest {
  height: 32px;
  line-height: 32px;
  padding-top: 0;
  padding-bottom: 0;
}

.nest-container > .nest-active {
  border: 1px solid #C6E2FF;
}

.nest-container.one {
  padding-top: 12px;
}

.nest-container.one > .nest {
  height: 36px;
  line-height: 36px;
  width: 180px;
  margin-left: 0;
}

.nest-container {
  padding: 5px 20px 0;
}

.el-dialog__body {
  padding-bottom: 20px;
}

.el-table td, .el-table th.is-leaf {
  text-align: center;
}

.el-menu-item, .el-submenu__title {
  height: 50px;
  line-height: 50px;
}

.e-col {
  background-color: #F5F7FA;
  color: #909399;
  vertical-align: middle;
  display: table-cell;
  position: relative;
  border: 1px solid #DCDFE6;
  border-right: none;
  border-radius: 4px;
  padding: 0 20px;
  width: auto;
  height: 32px;
  line-height: 32px;
  white-space: nowrap;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.elb {
  color: #fff;
  background-color: #409eff;
  border-color: #409eff;
}

.swi {

  display: inline-block;
  border-color: #409EFF;
  background-color: #409EFF;
  margin: 0;
  position: relative;
  width: 40px;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
  outline: 0;
  color: #fff;
  border-radius: 10px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: border-color .3s, background-color .3s;
  transition: border-color .3s, background-color .3s;
  vertical-align: middle;
  // &::after {
  //   content: "";
  //   position: absolute;
  //   top: 1px;
  //   left: 1px;
  //   border-radius: 100%;
  //   -webkit-transition: all .3s;
  //   transition: all .3s;
  //   width: 16px;
  //   height: 16px;
  //   background-color: #FFF;
  //   left: 100%;
  //   margin-left: -17px;
  // }
  &.no {
    background-color: #DCDFE6;
  }
}


.group-container {

  .gc-row {
    display: -webkit-flex;
    display: flex;
    align-items: center;

    .gc-row {
      margin-right: 50px;

      .gc-label {
        text-align: right;
      }
    }
  }

  .gc-label {
    min-width: 100px;
  }
}


.bri {
  user-select: none;
  cursor: pointer;
  border: none;
  padding: 10px 0;
  color: #409EFF;
  background-color: transparent;

  &:hover {
    background-color: transparent;
  }
}

.full-row {
  width: 100%;
}

.el-table {
  border-top: 1px solid #EBEEF5;
  border-left: 1px solid #EBEEF5;
}

.el-cascader, .el-select {
  width: 100%;
}

.el-cascader__tags {
  display: inline-flex;
  margin-right: 60px;
  flex-wrap: nowrap;
}

.mce-flow-layout-item.mce-last {
  font-size: 0 !important;
}

.tinymce {
  min-width: 600px;
  min-height: 300px;
}

.btn-tools {
  margin: 12px 0;
}

/* 搜索单选框 */
.search-checkbox-box {
  display: inline-block;
  height: 30px;
  line-height: 28px;
  background-color: #fff;
  border: 1px solid #dcdfe6;
  margin-top: -5px;
  border-radius: 4px;
  padding: 0 15px;
  font-size: 12px;
}
